package com.lee.boot.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "buy_info")
public class BuyInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    @TableField(value = "number")
    private Integer number;

    /**
     * 用户编号
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    private String productId;

    /**
     * 价格
     */
    @TableField(value = "rate")
    private BigDecimal rate;

    /**
     * 数量
     */
    @TableField(value = "count")
    private Integer count;

    /**
     * 总价
     */
    @TableField(value = "total")
    private BigDecimal total;

    /**
     * 购买时间
     */
    @TableField(value = "buy_time")
    private LocalDateTime buyTime;

    /**
     * 备注
     */
    @TableField(value = "mark")
    private String mark;
}